/**
 * Created by ljg on 2017/3/27.
 */

const searchInput=function () {
    angular.module('ui.table')
        .directive('searchInput', function (eventHelper) {
            return {
                restrict: 'E',
                replace: true,
                transclude: true,
                controller:function ($scope,$attrs) {

                },
                scope:{},
                template: function(el,attr){
                    const placeholder=attr.placeholder?attr.placeholder:"";
                    return '<div class="'+attr.class+'" ><input class="form-control" placeholder="'+placeholder+'" name='+attr.name+'></div>';
                },
                link : function(scope, element, attrs) {

                },
            };
        });
}
export default searchInput;
